import request from "@/utils/request";

// 查询其他计量列表
export function listMaterialOtherMeasure(query) {
  return request({
    url: "/ma/materialOtherMeasure/list",
    method: "get",
    params: query
  });
}

// // 查询其他计量详细
// export function getMaterialOtherMeasure(otherMeasureId) {
//   return request({
//     url: '/ma/materialOtherMeasure/' + otherMeasureId,
//     method: 'get'
//   })
// }
// 查询其他计量详细
export function getMaterialOtherMeasure(query) {
  return request({
    url: "/ma/materialOtherMeasure/info",
    method: "get",
    params: query
  });
}

// 新增其他计量
export function addMaterialOtherMeasure(data) {
  return request({
    url: "/ma/materialOtherMeasure",
    method: "post",
    data: data
  });
}

// 修改其他计量
export function updateMaterialOtherMeasure(data) {
  return request({
    url: "/ma/materialOtherMeasure",
    method: "put",
    data: data
  });
}

// 删除其他计量
export function delMaterialOtherMeasure(otherMeasureId) {
  return request({
    url: "/ma/materialOtherMeasure/" + otherMeasureId,
    method: "delete"
  });
}
